package com.zj.inoutput.model.response.user;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.annotation.write.style.HeadFontStyle;
import com.alibaba.excel.annotation.write.style.HeadStyle;
import lombok.Data;
import lombok.experimental.Accessors;
import org.apache.poi.ss.usermodel.HorizontalAlignment;

import java.io.Serializable;
import java.util.Date;

/**
 * @author DuanYu <a>Email:z-houjie@qq.com</a>
 * @date 2022-02-08 15:58
 */
@Data
@HeadStyle
@HeadFontStyle
@Accessors(chain = true)
@ContentStyle(wrapped = true, horizontalAlignment = HorizontalAlignment.LEFT)
public class UserExportDTO implements Serializable {

    private static final long serialVersionUID = 0L;

    /**
     * id
     */
    @ExcelIgnore
    private Integer id;

    /**
     * 姓名
     */
    @ColumnWidth(10)
    @ExcelProperty("姓名")
    private String name;


    /**
     * 用户类型： 0-未知，1-员工，2-客户
     */
    @ColumnWidth(15)
    @ExcelProperty("用户类型")
    private String type;

    /**
     * 手机号
     */
    @ColumnWidth(20)
    @ExcelProperty("手机号")
    private String mobile;

    /**
     * 用户头像
     */
    @ColumnWidth(30)
    @ExcelProperty("用户头像")
    private String avatar;


    /**
     * 删除标记
     */
    @ColumnWidth(15)
    @ExcelProperty("是否离职")
    private String deleted;

    /**
     * 创建时间
     */
    @ColumnWidth(25)
    @ExcelProperty("创建时间")
    private Date createdTime;

    /**
     * 更新时间
     */
    @ColumnWidth(25)
    @ExcelProperty("更新时间")
    private Date updatedTime;
}
